package com.pqtest.api.mapper;

import com.pqtest.api.entity.AccountEntity;
import com.pqtest.api.entity.CollectionEntity;
import com.pqtest.api.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.security.core.userdetails.User;

import java.util.List;

@Mapper
public interface UserMapper {
    List<UserEntity> getList();
    AccountEntity getAccountByName(String name);
    long createAccount(AccountEntity accountEntity);
    int updatePassword(AccountEntity accountEntity);
    int updateCategory(AccountEntity accountEntity);
    List<CollectionEntity> getColList(int uid);
    List<CollectionEntity> getWrongList(int uid);
    UserEntity getById(int uid);
}
